package cn.bgs.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 包名称： cn.bgs.vo
 * 类名称：Visitorsrecord
 *
 * @author:陈峰 创建时间：2022/6/22/19:49
 */
@Data
public class VisitorsrecordVo {
    @ApiModelProperty(value = "访客记录自增")
    private Integer visitorsRecordId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "小区中间表id")
    private Integer middleId;

    @ApiModelProperty(value = "访客性别")
    private String visitorsAge;

    @ApiModelProperty(value = "访客姓名")
    private String visitorsName;

    @ApiModelProperty(value = "访客手机号")
    private String visitorsPhone;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "访问时间")
    private LocalDateTime accessTime;

    @ApiModelProperty(value = "时长")
    private Double duration;


    @ApiModelProperty(value = "访问状态（生效中、已失效）")
    private String state;


    @ApiModelProperty(value = "小区id")
    private Integer communityId;

    @ApiModelProperty(value = "楼栋")
    private Integer howMany;
    @ApiModelProperty(value = "单元")
    private String cellNumber;
    @ApiModelProperty(value = "小区名称")
    private String communityName;

    @ApiModelProperty(value = "小区编号")
    private String communityNumber;
    @ApiModelProperty(value = "楼层")
    private String howFloor;


    @ApiModelProperty(value = "门户号")
    private String howPortal;



}
